﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

namespace Quester.Other
{
    public class FileLoger : ILoger
    {
        

        public void WriteLog(string format, params object[] args)
        {
            TextWriter wr = new StreamWriter(File.Open(@"D:\Log.txt", FileMode.Append));
            if (args.Length < 0)
            {
                wr.WriteLine(format, null);
            }
            else
            {
                wr.WriteLine(format, args);
            }
            wr.Flush();
            wr.Close();
        }
    }
}